# -*- coding: utf-8 -*-
# @File     : validators.py
# @Author   : bingjia
# @Time     : 2020/8/11 10:31
# @Desc     :

from operation.base.api import serializers


class NetworkValidator(serializers.Serializer):
    """
    网络验证
    """
    name = serializers.CharField(max_length=250)
    description = serializers.CharField(max_length=16)


class ModelValidator(serializers.Serializer):
    """
    模型验证
    """
    name = serializers.CharField(max_length=128)
    iterations_number = serializers.IntegerField()
    image_type = serializers.CharField(max_length=16)
    category_number = serializers.IntegerField()
    category_info = serializers.CharField()
    network_model = serializers.CharField()
    models_path = serializers.CharField()
    description = serializers.CharField()






